<!--  -->
<template>
    <div class="leftTopModule">
      <header class="head">
          <titleModule :title="state.titleName"></titleModule>
      </header>
      <section class="main" id="leftFooterMain"></section>
    </div>
  </template>
  
  <script setup>
  import { onMounted, reactive } from 'vue'
  import titleModule from '../../components/title/index.vue'
  import { WordCloud, WordCloud } from '@antv/g2plot';
  const state = reactive({
      titleName:'各区GDP'
  })
  const createWordCloud = () =>{
    //1.创建数据源
    const data = ['加居家'];
    //2.创建wordCloud对象
    const WordCloud = new WordCloud('rightFooterMain',{
        data,
        wordStyle:{
            fontSize:[20,60]
        }
    })
    //3.渲染器
    WordCloud.render();
  }
  onMounted(()=>{

  })
  </script>
  <style  scoped>
  .leftTopModule{
      width: 100%;
      height: 100%;
  }
  .head{
      width: 100%;
      height: 15%;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  </style>